package com.zhaozhaonews.article.feign;


import com.zhaozhaonews.api.article.IArticleClient;
import com.zhaozhaonews.article.service.ApArticleService;
import com.zhaozhaonews.model.article.dto.ArticleDto;
import com.zhaozhaonews.model.common.dto.ResponseResult;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author WanJl
 * @version 1.0
 * @title ArticleClient
 * @description
 * @create 2025/2/19
 */
@RestController
public class ArticleClient implements IArticleClient {

    @Resource
    private ApArticleService apArticleService;

    @Override
    public ResponseResult save(ArticleDto articleDto) {
        return apArticleService.saveArticle(articleDto);
    }
}
